package com.jingdianjichi.subject.domain.convert;

import com.jingdianjichi.subject.domain.entity.SubjectInfoBO;
import com.jingdianjichi.subject.domain.entity.SubjectOptionBO;
import com.jingdianjichi.subject.infra.basic.entity.SubjectInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * SubjectCategoryConverter
 *
 * @author 86178
 * @version 2024/03/17 20:48
 **/
@Mapper
public interface SubjectInfoConverter {

    SubjectInfoConverter INSTANCE = Mappers.getMapper(SubjectInfoConverter.class);

    SubjectInfo convertBoToInfo(SubjectInfoBO subjectInfoBO);

    List<SubjectInfoBO> convertInfoListToBOList(List<SubjectInfo> subjectInfoList);

    SubjectInfoBO convertOptionBoToInfoBo(SubjectOptionBO subjectOptionBO);

    SubjectInfoBO convertOptionAndInfoBoToInfoBo(SubjectOptionBO subjectOptionBO, SubjectInfo subjectInfo);
}

